package com.huanghuai.retail.utils;

import java.lang.reflect.Field;

public class RetailConstant {
    public static final Integer SUPER_ADMIN = 0; //超级管理员
    public static final String EMPLOYEE_0 = "超级管理员";
    public static final Integer NORMAL_ADMINISTRATOR = 1; //普通管理员
    public static final String EMPLOYEE_1 = "普通管理员";
    public static final Integer DELIVERYMAN = 2; //送货员
    public static final String EMPLOYEE_2 = "送货员";
    public static final Integer REPAIRMAN = 3; //设备维修员
    public static final String EMPLOYEE_3 = "设备维修员";
    public static final Integer WAREHOUSE_ADMINISTRATOR = 4; //仓库管理员
    public static final String EMPLOYEE_4 = "仓库管理员";
    public static final Integer CHECK_PEOPLE = 5; //仓库管理员
    public static final String EMPLOYEE_5 = "盘点员";

    public static String getConst(String field){
        try {
            return RetailConstant.class.getField(field).get(null).toString();
        } catch (Exception e) {}
        return null;
    }
}
